package com.kgc.basic.remote;

import com.kgc.basic.pojo.Good;
import com.kgc.basic.pojo.Store;
import com.kgc.basic.util.ResponseMsg;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface StoreRemote {

    //根据条件查询仓库信息
    @RequestMapping("getStoreList")
    @ResponseBody
    ResponseMsg getStoreList(@RequestBody Map<String,Object> paramMap);

    //查询仓库信息
    @RequestMapping("getAllStore")
    @ResponseBody
    ResponseMsg getAllStore();

    //根据id查询仓库信息
    @RequestMapping("getStoreById")
    @ResponseBody
    ResponseMsg getStoreById(@RequestParam("id") Integer id);

    //新增仓库信息
    @RequestMapping("addStore")
    @ResponseBody
    ResponseMsg addStore(@RequestBody Store store);

    //更新仓库信息
    @RequestMapping("modifyStore")
    @ResponseBody
    ResponseMsg modifyStore(@RequestBody Store store);

    //删除仓库信息
    @RequestMapping("delStore")
    @ResponseBody
    ResponseMsg delStore(@RequestParam("id") Integer id);

    //根据code查询仓库信息
    @RequestMapping("getStoreByCode")
    @ResponseBody
    ResponseMsg getStoreByCode(@RequestParam("code") String code);

    //根据name查询仓库信息
    @RequestMapping("getStoreByName")
    @ResponseBody
    ResponseMsg getStoreByName(@RequestParam("name") String name);
}
